import 'package:imperius_insights/entity/project.dart';

String stagingToText(Staging staging) {
  switch(staging) {
    case Staging.PrePublish:
      return '待发布';
    case Staging.Unset:
      return '未指定';
    case Staging.Scheduled:
      return '已排期';
    case Staging.Develop:
      return '开发中';
    case Staging.SelfTesting:
      return '自测中';
    case Staging.PendingToTest:
      return '待测试';
    case Staging.QATesting:
      return '测试中';
    case Staging.PostPublish:
      return '已发布';
    case Staging.Paused:
      return '暂停';
    default:
      return staging.toString();
  }
}

String stagingToTaskActionText(Staging staging) {
  switch(staging) {
    case Staging.PrePublish:
      return '发布';
    case Staging.Unset:
      return '未指定';
    case Staging.Scheduled:
      return '已排期';
    case Staging.Develop:
      return '开发';
    case Staging.SelfTesting:
      return '自测';
    case Staging.PendingToTest:
      return '待测试';
    case Staging.QATesting:
      return '测试';
    case Staging.PostPublish:
      return '发布';
    case Staging.Paused:
      return '暂停';
    default:
      return staging.toString();
  }
}